<?php /* Smarty version 2.6.26, created on 2018-07-25 23:42:34
         compiled from D:%5Citemstudy%5Citem/home%5Ctemplates/default/shop/index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'uqcms', 'D:\\itemstudy\\item/home\\templates/default/shop/index.html', 1, false),array('modifier', 'cat', 'D:\\itemstudy\\item/home\\templates/default/shop/index.html', 49, false),array('modifier', 'base64_encode', 'D:\\itemstudy\\item/home\\templates/default/shop/index.html', 49, false),array('modifier', 'img_size', 'D:\\itemstudy\\item/home\\templates/default/shop/index.html', 64, false),)), $this); ?>
<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'goods','v' => 'data','c' => "get_all:group_cid=smarty.get.group_cid&shop_id=smarty.get.id&key=smarty.get.key&page=smarty.get.page&page_size=8&sort=smarty.get.sort"), $this);?>

<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'shop','v' => 'sprow','c' => "get_one:smarty.get.id"), $this);?>

<?php echo $this->_plugins['function']['uqcms'][0][0]->load_module(array('m' => 'shop','v' => 'design','c' => "design:smarty.get.id"), $this);?>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $this->_tpl_vars['sprow']['name']; ?>
 - <?php echo $this->_tpl_vars['UQCMS']['site_name']; ?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
css/common_uqcms.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/public.css"> 
<link rel="stylesheet" type="text/css" href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/shop.css?t=1">
</head>
<body> 
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="spbox_bar">
	<div class="spbox">
		<div class="splogo">
			<a href="index.php"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo $this->_tpl_vars['UQCMS']['site_logo']; ?>
"/></a> 
		</div> 
		<div class="spdesc"> 
			<div class="kf"> 
				<h3><?php echo $this->_tpl_vars['sprow']['name']; ?>
</h3>
				<?php if ($this->_tpl_vars['sprow']['qq']): ?>
					<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $this->_tpl_vars['sprow']['qq']; ?>
&amp;site=qq&amp;menu=yes" target="_blank">
					<img src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/chat.png" width="18"/></a>
				<?php endif; ?> 
			</div>
			<div class="score"> 
				<dl>
					<dt>描述</dt>
					<dd><?php echo $this->_tpl_vars['sprow']['score']['goods']; ?>
</dd>
				</dl>
				<dl>
					<dt>服务</dt>
					<dd><?php echo $this->_tpl_vars['sprow']['score']['service']; ?>
</dd>
				</dl>
				<dl>
					<dt>物流</dt>
					<dd><?php echo $this->_tpl_vars['sprow']['score']['logistics']; ?>
</dd>
				</dl> 	
			</div> 
		</div>
		<div class="shop_ewm">
			<span>手机逛</span>
			<a href="javascript:;"><img src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
images/ewm.png" width="30px"/></a>
			<p><img width="150" src="index.php?m=ajax&a=qrcode&size=3&code=<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['__HOST__'])) ? $this->_run_mod_handler('cat', true, $_tmp, 'wap.php?m=shop&id=') : smarty_modifier_cat($_tmp, 'wap.php?m=shop&id=')))) ? $this->_run_mod_handler('cat', true, $_tmp, $_GET['id']) : smarty_modifier_cat($_tmp, $_GET['id'])))) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : base64_encode($_tmp)); ?>
">
				<i>扫一扫，手机逛起来</i>
			</p>
		</div>
		<div class="spsch">
			<div class="spschBox">
				<input type="text" name="keyword" value="" id="sch_key" class="spsch_input"/>
				<input type="submit" value="搜全站" class="all_sub"/>
				<input type="submit" value="搜本店" class="sp_sub"/> 
			</div>
		</div> 
	</div>
</div>
<div class="custom_area"<?php if ($this->_tpl_vars['design']['bg_images']): ?> style="background:url(<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo $this->_tpl_vars['design']['bg_images']; ?>
);"<?php else: ?> style=" background:#fff;"<?php endif; ?>>
	<?php if ($this->_tpl_vars['design']['top_images']): ?>
		<div class="banner_box" style="background:url(<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['design']['top_images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '1920x150') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '1920x150')); ?>
) center center;"></div>
	<?php endif; ?>	
	<div class="detail_box">
		<div class="detail_all">
			<!--- left -->
			<div class="left">
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/shop/left_hot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/shop/left_menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			</div>
			<!--- RIGHT -->
			<div class="right">
				<div class="hname"><span>热卖产品</span><a href="index.php?m=shop&a=detail&cid=&id=<?php echo $_GET['id']; ?>
&sort=volume" class="more">更多></a></div>
				<div class="goodsbox"> 
					<?php if ($this->_tpl_vars['data']['list']): ?> 
						<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?> 
						<div class="gbox">
							<div class="img"><a href="?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" title="<?php echo $this->_tpl_vars['i']['title']; ?>
"><img data-original="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '210x210') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '210x210')); ?>
" class="lazy"/></a></div>
							<div class="simg">
								<?php $_from = $this->_tpl_vars['i']['simg']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['s']):
?>
									<a href="javascript:;" <?php if ($this->_tpl_vars['k'] == 0): ?>class="ch"<?php endif; ?>><img data-big="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['s'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '210x210') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '210x210')); ?>
" data-original="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['s'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '30x30') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '30x30')); ?>
" class="lazy"></a>
								<?php endforeach; endif; unset($_from); ?>
							</div>
							<div class="ct">
								<div class="nm"><a href="?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" target="_blank" title="<?php echo $this->_tpl_vars['i']['title']; ?>
"><?php echo $this->_tpl_vars['i']['title']; ?>
</a></div>
								<div class="pf gbc">
									<p>¥ <span><?php echo $this->_tpl_vars['i']['price']; ?>
</span></p> 
									<span class="comnum">已售 <?php echo $this->_tpl_vars['i']['comment']; ?>
</span>
								</div>
							</div>
						</div>
					<?php endforeach; endif; unset($_from); ?>
				<?php else: ?>
					<div class="nomsg">抱歉，没有找到相关的商品</div>
				<?php endif; ?>
				</div> 
			</div>
		</div>
	</div> 
</div> 
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
var PUBLIC_PATH	= '<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
';
var APP_PATH	= '<?php echo $this->_tpl_vars['__APP__']; ?>
';
</script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/common.js"></script> 
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/js/cart.js"></script>
<script type="text/javascript">
lazyload();
$(function(){
	$(".gbox .simg a").hover(function(){ 
		$this = $(this); 
		img = $('img',this).attr('data-big'); 
		setTimeout(function(){
			$this.addClass('ch').siblings().removeClass('ch');
			$this.parent().siblings('.img').children('a').children('img').attr('src',img); 
		},300); 
	});
	
	var $tab_li = $('.seller_sort .tab a');
	$tab_li.hover(function(){ 
		$(this).addClass('selected').siblings().removeClass('selected');
		var index = $tab_li.index(this); 
		$('div.seller_sort .pxcon .con').eq(index).show().siblings().hide(); 
	});	 
	
	// 点击搜索
	$('.all_sub').click(function(){
		keyword = $('#sch_key').val();
		location.href="index.php?m=goods&key="+keyword;
	});
	$('.sp_sub').click(function(){
		keyword = $('#sch_key').val();
		location.href="index.php?m=shop&id=<?php echo $_GET['id']; ?>
&key="+keyword;
	});  
}); 
</script>